﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HistoryWork.aspx.cs" Inherits="CRM.Web.Pop.HistoryWork" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/pop.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript"  defer="defer" >
        $(document).ready(function() {
        var scrollHeight = document.body.scrollHeight;
        if (scrollHeight == 0) {
            scrollHeight = 300;
        }
        window.parent.document.getElementById('frameHistory').style.height = (scrollHeight + 20) + 'px';
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" id="tTitle" style="display: none;">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="历史工单信息" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div style="width: 100%">
        <div class="listdiv">            
            <table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">
                <tr>
                    <td class="title"><div  class="nowrap">
                        整机编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVINCODE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        发动机号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtENGINEMODEL" runat="server" CssClass="txt"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        来电号码:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCALLER" runat="server" CssClass="txt"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        工单编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCASEID" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div  class="nowrap">
                        派工部门:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtProcessingDepartmentName" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            创建人:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCREATEPEOPLE" runat="server" MaxLength="20" CssClass="txt"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            咨询内容:
                        </div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCONSULTINGCONTENT" runat="server" CssClass="txt"></asp:TextBox>
                    </td>
                    <td class="title" style="width: auto;">
                        &nbsp;
                    </td>
                    <td class="content"><div style="width: 100px; " class="nowrap">
                        <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                            OnClick="btnSearch_Click" /></div>
                    </td>
                
                </tr>
            </table>
        </div>
    </div>    
    <div style="width: 100%">
        <div class="listdiv">
            <dp:WebGridView ID="gvListRepair" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                AllowSorting="true" PageSize="5" PageTags="PageRepair" Width="100%" SortExpressionValue="CASEID"  SortDirectionValue="DESC" Caption="报修历史工单">
                <Columns>
			        <asp:TemplateField HeaderText="工单编号" SortExpression="CASEID">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyCaseID" runat="server" NavigateUrl='<%# Eval("CASEID", RepairCaseModifyUrl) %>' Text='<%# Bind("CASEID") %>'  Target="_blank"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			    <asp:BoundField DataField="CALLER" HeaderText="来电号码"  SortExpression="CALLER" />
			    <asp:BoundField DataField="CALLED" HeaderText="被叫号码"  SortExpression="CALLED"  Visible="false" />
			    <asp:BoundField DataField="CALLID" HeaderText="主叫标识"  SortExpression="CALLID"  Visible="false" />
			    <asp:BoundField DataField="RECORDCODE" HeaderText="录音代码"  SortExpression="RECORDCODE" Visible="false" />
			    <asp:BoundField DataField="CALLTYPE" HeaderText="来电类型"  SortExpression="CALLTYPE"  Visible="false" />
			    <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号"  SortExpression="CUSTOMERID"  Visible="false" />
			    <asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名"  SortExpression="CUSTOMERNAME" />
			    <asp:BoundField DataField="COUNTRY" HeaderText="国家"  SortExpression="COUNTRY"  Visible="false" />
			    <asp:BoundField DataField="PROVINCE" HeaderText="省份"  SortExpression="PROVINCE"  Visible="false" />
			    <asp:BoundField DataField="PREFECTURECITY" HeaderText="地级市"  SortExpression="PREFECTURECITY"  Visible="false" />
			    <asp:BoundField DataField="CITY" HeaderText="区/县/市"  SortExpression="CITY"  Visible="false" />
			    <asp:BoundField DataField="VILLAGETOWN" HeaderText="乡/镇/街道"  SortExpression="VILLAGETOWN"  Visible="false" />
			    <asp:BoundField DataField="VILLAGE" HeaderText="村"  SortExpression="VILLAGE"  Visible="false" />
			    <asp:BoundField DataField="GROUPTEAM" HeaderText="组/队"  SortExpression="GROUPTEAM"  Visible="false" />
			    <asp:BoundField DataField="ADDRESS" HeaderText="详细地址"  SortExpression="ADDRESS"  Visible="false" />
			    <asp:BoundField DataField="FIRSTCONTACTTEL" HeaderText="联系号码"  SortExpression="FIRSTCONTACTTEL" />
			    <asp:BoundField DataField="VINCODE" HeaderText="整机编号"  SortExpression="VINCODE"  />
			    <asp:BoundField DataField="BRAND" HeaderText="品牌"  SortExpression="BRAND" />
			    <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型"  SortExpression="VEHICLETYPE" />
			    <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码"  SortExpression="PRODUCTCODE" />
			    <asp:BoundField DataField="SERIES" HeaderText="系列"  SortExpression="SERIES"  Visible="false" />
			    <asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS"  Visible="false" />
			    <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号"  SortExpression="ENGINEMODEL"  />
			    <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家"  SortExpression="ENGINEMANUFACTURERS"  Visible="false" />
			    <asp:BoundField DataField="FAULTSYSTEM" HeaderText="故障系统"  SortExpression="FAULTSYSTEM"  Visible="false" />
			    <asp:BoundField DataField="FAILEDPARTSASSEMBLY" HeaderText="故障部件总成"  SortExpression="FAILEDPARTSASSEMBLY"  Visible="false" />
			    <asp:BoundField DataField="FAILUREPARTS" HeaderText="故障零部件"  SortExpression="FAILUREPARTS"  Visible="false" />
			    <asp:BoundField DataField="FAULTCODES" HeaderText="故障编码"  SortExpression="FAULTCODES"  Visible="false" />
			    <asp:BoundField DataField="SYMPTOM" HeaderText="故障现象"   />
			    <asp:BoundField DataField="SYMPTOMDESCRIPTION" HeaderText="故障描述"  SortExpression="SYMPTOMDESCRIPTION"  />
			    <asp:BoundField DataField="WORKTIME" HeaderText="工作时间"  SortExpression="WORKTIME"  />
			    <asp:BoundField DataField="FAILURELEVEL" HeaderText="故障等级"  SortExpression="FAILURELEVEL"  Visible="false" />
			    <asp:BoundField DataField="FAILUREANALYSIS" HeaderText="故障原因分析"  SortExpression="FAILUREANALYSIS"  Visible="false" />
			    <asp:BoundField DataField="STATUS" HeaderText="处理状态"  SortExpression="STATUS" />
			    <asp:BoundField DataField="HANDLING" HeaderText="处理方式"  SortExpression="HANDLING"  Visible="false" />
			    <asp:BoundField DataField="APPROACH" HeaderText="处理方法"  SortExpression="APPROACH"  Visible="false" />
			    <asp:BoundField DataField="RESULTS" HeaderText="处理结果"  SortExpression="RESULTS"   />
			    <asp:BoundField DataField="SEATSSUMMARY" HeaderText="坐席小结"  SortExpression="SEATSSUMMARY"  Visible="false" />
			    <asp:BoundField DataField="FAILUREOCCURS" HeaderText="故障发生地"  SortExpression="FAILUREOCCURS"  Visible="false" />
			    <asp:BoundField DataField="GPSADDRESS" HeaderText="GPS地址"  SortExpression="GPSADDRESS"  Visible="false" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE"  />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			    <asp:BoundField DataField="ProcessingObjectType" HeaderText="派工对象类型"  SortExpression="ProcessingObjectType" />
			    <asp:BoundField DataField="ProcessingDepartmentName" HeaderText="派工部门"  SortExpression="ProcessingDepartmentName"  />			    
			    <asp:BoundField DataField="ProcessingUserName" HeaderText="指派人员"  SortExpression="ProcessingUserName"   Visible="false" />
			    <asp:BoundField DataField="DISPATCHINGTIME" HeaderText="派工时间"  SortExpression="DISPATCHINGTIME"  DataFormatString="{0:yyyy-MM-dd}"/>
			    <asp:BoundField DataField="FOLLOWUPTIME" HeaderText="跟进时间"  SortExpression="FOLLOWUPTIME"  Visible="false" />
			    <asp:BoundField DataField="FOLLOWUPCONTENT" HeaderText="跟进内容"  SortExpression="FOLLOWUPCONTENT" Visible="false"  />
			    <asp:BoundField DataField="PROCESSINGTIME" HeaderText="处理时间"  SortExpression="PROCESSINGTIME" Visible="false"  />
			    <asp:BoundField DataField="PROCESSINGCONTENT" HeaderText="处理内容"  SortExpression="PROCESSINGCONTENT"  Visible="false" />
			    <asp:BoundField DataField="CLOSETIME" HeaderText="关闭时间"  SortExpression="CLOSETIME"  Visible="false" />
			    <asp:BoundField DataField="CLOSECONTENT" HeaderText="关闭内容"  SortExpression="CLOSECONTENT"  Visible="false" />
			    <asp:BoundField DataField="TURNTIME" HeaderText="转办时间"  SortExpression="TURNTIME"  Visible="false" />
			    <asp:BoundField DataField="TURNCONTENT" HeaderText="转办内容"  SortExpression="TURNCONTENT"  Visible="false" />
			    <asp:BoundField DataField="TODOREMINDERTIME" HeaderText="闭环时间"  SortExpression="TODOREMINDERTIME"  Visible="false" />
			    <asp:BoundField DataField="REVISITINGTIME" HeaderText="工单回访时间"  SortExpression="REVISITINGTIME"  Visible="false" />
			    <asp:BoundField DataField="RECEIVETIME" HeaderText="收到反馈时间"  SortExpression="RECEIVETIME" Visible="false"  />
			    <asp:BoundField DataField="RECEIVECONTENT" HeaderText="收到反馈内容"  SortExpression="RECEIVECONTENT"  Visible="false" />
			    <asp:BoundField DataField="RECEIVEPEOPLE" HeaderText="收到反馈号码或工号"  SortExpression="RECEIVEPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="DEPARTURETIME" HeaderText="出发反馈时间"  SortExpression="DEPARTURETIME" Visible="false"  />
			    <asp:BoundField DataField="DEPARTURECONTENT" HeaderText="出发反馈内容"  SortExpression="DEPARTURECONTENT"  Visible="false" />
			    <asp:BoundField DataField="DEPARTUREPEOPLE" HeaderText="出发反馈号码或工号"  SortExpression="DEPARTUREPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="ARRIVALTIME" HeaderText="到达反馈时间"  SortExpression="ARRIVALTIME" Visible="false"  />
			    <asp:BoundField DataField="ARRIVALCONTENT" HeaderText="到达反馈内容"  SortExpression="ARRIVALCONTENT"  Visible="false" />
			    <asp:BoundField DataField="ARRIVALPEOPLE" HeaderText="到达反馈号码或工号"  SortExpression="ARRIVALPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="COMPLETEDTIME" HeaderText="完工反馈时间"  SortExpression="COMPLETEDTIME"  Visible="false" />
			    <asp:BoundField DataField="COMPLETEDCONTENT" HeaderText="完工反馈内容"  SortExpression="COMPLETEDCONTENT"  Visible="false" />
			    <asp:BoundField DataField="COMPLETEDPEOPLE" HeaderText="完工反馈号码或工号"  SortExpression="COMPLETEDPEOPLE" Visible="false"  />
			    <asp:BoundField DataField="SERVICENUMBER" HeaderText="维修人数"  SortExpression="SERVICENUMBER" Visible="false"  />
			    <asp:BoundField DataField="MILEAGE" HeaderText="里程"  SortExpression="MILEAGE" Visible="false"  />
			    <asp:BoundField DataField="PLACEMETHOD" HeaderText="到位方式"  SortExpression="PLACEMETHOD"  Visible="false" />
			    <asp:BoundField DataField="SERVICEFEE" HeaderText="维修费用"  SortExpression="SERVICEFEE"  Visible="false" />
			    <asp:BoundField DataField="SERVICEHOURS" HeaderText="维修工时"  SortExpression="SERVICEHOURS"  Visible="false" />
			    <asp:BoundField DataField="REPAIRPARTS" HeaderText="维修零部件"  SortExpression="REPAIRPARTS" Visible="false"  />
			    <asp:BoundField DataField="HANDLINGINSTRUCTIONS" HeaderText="处理说明"  SortExpression="HANDLINGINSTRUCTIONS"  Visible="false" />
			    <asp:BoundField DataField="PRODUCTSATISFACTION" HeaderText="产品满意程度"  SortExpression="PRODUCTSATISFACTION"  Visible="false" />
			    <asp:BoundField DataField="SERVICESATISFACTION" HeaderText="服务满意程度"  SortExpression="SERVICESATISFACTION" Visible="false" />
			    <asp:BoundField DataField="VISITTIME" HeaderText="回访时间"  SortExpression="VISITTIME"  Visible="false" />
			    <asp:BoundField DataField="VISITCOMPLETEDTIME" HeaderText="完成时间"  SortExpression="VISITCOMPLETEDTIME"  Visible="false" />
			    <asp:BoundField DataField="VISITREMARK" HeaderText="回访备注"  SortExpression="VISITREMARK"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                        <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("CASEID", RepairCaseModifyUrl) %>' Target="_blank">详细</asp:HyperLink>        
                    </div>
				    </itemtemplate>
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
    <div style="width: 100%">
        <div class="listdiv">
            <dp:WebGridView ID="gvListConsulting" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                AllowSorting="true" PageSize="5" PageTags="PageConsulting" Width="100%" SortExpressionValue="CASEID" SortDirectionValue="DESC" Caption="咨询历史工单">
                <Columns>
			        <asp:TemplateField HeaderText="工单编号" SortExpression="CASEID">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyCaseID" runat="server" NavigateUrl='<%# Eval("CASEID", ConsultingCaseModifyUrl) %>' Text='<%# Bind("CASEID") %>'  Target="_blank"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			    <asp:BoundField DataField="CALLER" HeaderText="来电号码"  SortExpression="CALLER"  />
			    <asp:BoundField DataField="CALLED" HeaderText="被叫号码"  SortExpression="CALLED"  Visible="false" />
			    <asp:BoundField DataField="CALLID" HeaderText="主叫标识"  SortExpression="CALLID"  Visible="false" />
			    <asp:BoundField DataField="RECORDCODE" HeaderText="录音代码"  SortExpression="RECORDCODE"  Visible="false" />
			    <asp:BoundField DataField="CALLTYPE" HeaderText="来电类型"  SortExpression="CALLTYPE" Visible="false"  />
			    <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号"  SortExpression="CUSTOMERID"  Visible="false" />
			    <asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名"  SortExpression="CUSTOMERNAME" />
			    <asp:BoundField DataField="FIRSTCONTACTTEL" HeaderText="联系号码"  SortExpression="FIRSTCONTACTTEL"  Visible="false" />
			    <asp:BoundField DataField="ADDRESS" HeaderText="详细地址"  SortExpression="ADDRESS"  Visible="false" />
			    <asp:BoundField DataField="COUNTRY" HeaderText="国家"  SortExpression="COUNTRY"  Visible="false" />
			    <asp:BoundField DataField="PROVINCE" HeaderText="省份"  SortExpression="PROVINCE"  Visible="false" />
			    <asp:BoundField DataField="PREFECTURECITY" HeaderText="地级市"  SortExpression="PREFECTURECITY"  Visible="false" />
			    <asp:BoundField DataField="CITY" HeaderText="区/县/市"  SortExpression="CITY"  Visible="false" />
			    <asp:BoundField DataField="VILLAGETOWN" HeaderText="乡/镇/街道"  SortExpression="VILLAGETOWN" Visible="false"  />
			    <asp:BoundField DataField="VILLAGE" HeaderText="村"  SortExpression="VILLAGE" Visible="false"  />
			    <asp:BoundField DataField="GROUPTEAM" HeaderText="组/队"  SortExpression="GROUPTEAM" Visible="false"  />
			    <asp:BoundField DataField="CONSULTINGTYPE" HeaderText="咨询类型"  SortExpression="CONSULTINGTYPE"  Visible="false" />
			    <asp:BoundField DataField="VINCODE" HeaderText="整机编号"  SortExpression="VINCODE"  Visible="false" />
			    <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码"  SortExpression="PRODUCTCODE" />
			    <asp:BoundField DataField="BRAND" HeaderText="品牌"  SortExpression="BRAND" />
			    <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型"  SortExpression="VEHICLETYPE" />
			    <asp:BoundField DataField="SERIES" HeaderText="系列"  SortExpression="SERIES"  />
			    <asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS"   />
			    <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号"  SortExpression="ENGINEMODEL"  Visible="false" />
			    <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家"  SortExpression="ENGINEMANUFACTURERS"  Visible="false" />
			    <asp:BoundField DataField="CONSULTINGCONTENT" HeaderText="咨询内容"  SortExpression="CONSULTINGCONTENT" />
			    <asp:BoundField DataField="APPROACH" HeaderText="处理方法"  SortExpression="APPROACH"  Visible="false" />
			    <asp:BoundField DataField="STATUS" HeaderText="处理状态"  SortExpression="STATUS" />
			    <asp:BoundField DataField="RESULTS" HeaderText="处理结果"  SortExpression="RESULTS" />
			    <asp:BoundField DataField="REMINDERTIME" HeaderText="闭环时间"  SortExpression="REMINDERTIME"  Visible="false" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" Visible="false"  />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                        <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("CASEID", ConsultingCaseModifyUrl) %>' Target="_blank">详细</asp:HyperLink>           
                    </div>
				    </itemtemplate>
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
    <div style="width: 100%">
        <div class="listdiv">
            <dp:WebGridView ID="gvListComplaint" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                AllowSorting="true" PageSize="5" PageTags="PageComplaint" Width="100%" SortExpressionValue="CASEID"  SortDirectionValue="DESC" Caption="投诉历史工单">
                <Columns>
			        <asp:TemplateField HeaderText="工单编号" SortExpression="CASEID">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyCaseID" runat="server" NavigateUrl='<%# Eval("CASEID", ComplaintCaseModifyUrl) %>' Text='<%# Bind("CASEID") %>'  Target="_blank"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			    <asp:BoundField DataField="CALLER" HeaderText="来电号码"  SortExpression="CALLER" />
			    <asp:BoundField DataField="CALLED" HeaderText="被叫号码"  SortExpression="CALLED"  Visible="false" />
			    <asp:BoundField DataField="CALLID" HeaderText="主叫标识"  SortExpression="CALLID"  Visible="false" />
			    <asp:BoundField DataField="RECORDCODE" HeaderText="录音代码"  SortExpression="RECORDCODE"  Visible="false" />
			    <asp:BoundField DataField="CALLTYPE" HeaderText="来电类型"  SortExpression="CALLTYPE"  Visible="false" />
			    <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号"  SortExpression="CUSTOMERID"  Visible="false" />
			    <asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名"  SortExpression="CUSTOMERNAME" />
			    <asp:BoundField DataField="FIRSTCONTACTTEL" HeaderText="联系号码"  SortExpression="FIRSTCONTACTTEL"  Visible="false" />
			    <asp:BoundField DataField="ADDRESS" HeaderText="详细地址"  SortExpression="ADDRESS"  Visible="false" />
			    <asp:BoundField DataField="COUNTRY" HeaderText="国家"  SortExpression="COUNTRY" Visible="false"  />
			    <asp:BoundField DataField="PROVINCE" HeaderText="省份"  SortExpression="PROVINCE" Visible="false"  />
			    <asp:BoundField DataField="PREFECTURECITY" HeaderText="地级市"  SortExpression="PREFECTURECITY"  Visible="false" />
			    <asp:BoundField DataField="CITY" HeaderText="区/县/市"  SortExpression="CITY" Visible="false"  />
			    <asp:BoundField DataField="VILLAGETOWN" HeaderText="乡/镇/街道"  SortExpression="VILLAGETOWN"  Visible="false" />
			    <asp:BoundField DataField="VILLAGE" HeaderText="村"  SortExpression="VILLAGE"  Visible="false" />
			    <asp:BoundField DataField="GROUPTEAM" HeaderText="组/队"  SortExpression="GROUPTEAM" Visible="false"  />
			    <asp:BoundField DataField="VEHICLELOCATION" HeaderText="车辆所在地"  SortExpression="VEHICLELOCATION"  Visible="false" />
			    <asp:BoundField DataField="GPSADDRESS" HeaderText="GPS地址"  SortExpression="GPSADDRESS"  Visible="false" />
			    <asp:BoundField DataField="CONSULTINGTYPE" HeaderText="咨询类型"  SortExpression="CONSULTINGTYPE"  Visible="false" />
			    <asp:BoundField DataField="VINCODE" HeaderText="整机编号"  SortExpression="VINCODE"  Visible="false" />
			    <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码"  SortExpression="PRODUCTCODE" />
			    <asp:BoundField DataField="BRAND" HeaderText="品牌"  SortExpression="BRAND" />
			    <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型"  SortExpression="VEHICLETYPE" />
			    <asp:BoundField DataField="SERIES" HeaderText="系列"  SortExpression="SERIES"  Visible="false" />
			    <asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS"  Visible="false" />
			    <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号"  SortExpression="ENGINEMODEL" Visible="false"  />
			    <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家"  SortExpression="ENGINEMANUFACTURERS" Visible="false"  />
			    <asp:BoundField DataField="COMPLAINTTYPE" HeaderText="投诉类型"  SortExpression="COMPLAINTTYPE" />
			    <asp:BoundField DataField="OBJECTTYPE" HeaderText="投诉对象类型"  SortExpression="OBJECTTYPE" />
			    <asp:BoundField DataField="COMPLAINTOBJECT" HeaderText="投诉对象"  SortExpression="COMPLAINTOBJECT" />
			    <asp:BoundField DataField="COMPLAINTCONTENT" HeaderText="投诉内容"  SortExpression="COMPLAINTCONTENT"  Visible="false" />
			    <asp:BoundField DataField="COMPLAINTLEVEL" HeaderText="投诉等级"  SortExpression="COMPLAINTLEVEL"  Visible="false" />
			    <asp:BoundField DataField="APPROACH" HeaderText="处理方法"  SortExpression="APPROACH"  Visible="false" />
			    <asp:BoundField DataField="HANDLING" HeaderText="处理方式"  SortExpression="HANDLING"  Visible="false" />
			    <asp:BoundField DataField="STATUS" HeaderText="处理状态"  SortExpression="STATUS" />
			    <asp:BoundField DataField="RESULTS" HeaderText="处理结果"  SortExpression="RESULTS"  Visible="false" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE"  />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="false" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			    <asp:BoundField DataField="SERVICENUMBER" HeaderText="维修人数"  SortExpression="SERVICENUMBER"  Visible="false" />
			    <asp:BoundField DataField="MILEAGE" HeaderText="里程"  SortExpression="MILEAGE" Visible="false"  />
			    <asp:BoundField DataField="PLACEMETHOD" HeaderText="到位方式"  SortExpression="PLACEMETHOD"  Visible="false" />
			    <asp:BoundField DataField="SERVICEFEE" HeaderText="维修费用"  SortExpression="SERVICEFEE"  Visible="false" />
			    <asp:BoundField DataField="SERVICEHOURS" HeaderText="维修工时"  SortExpression="SERVICEHOURS"  Visible="false" />
			    <asp:BoundField DataField="REPAIRPARTS" HeaderText="维修零部件"  SortExpression="REPAIRPARTS"  Visible="false" />
			    <asp:BoundField DataField="HANDLINGINSTRUCTIONS" HeaderText="处理说明"  SortExpression="HANDLINGINSTRUCTIONS"  Visible="false" />
			    <asp:BoundField DataField="PRODUCTSATISFACTION" HeaderText="产品满意程度"  SortExpression="PRODUCTSATISFACTION"  Visible="false" />
			    <asp:BoundField DataField="SERVICESATISFACTION" HeaderText="服务满意程度"  SortExpression="SERVICESATISFACTION"  Visible="false" />
			    <asp:BoundField DataField="VISITTIME" HeaderText="回访时间"  SortExpression="VISITTIME"  Visible="false" />
			    <asp:BoundField DataField="VISITCOMPLETEDTIME" HeaderText="完成时间"  SortExpression="VISITCOMPLETEDTIME"  Visible="false" />
			    <asp:BoundField DataField="VISITREMARK" HeaderText="回访备注"  SortExpression="VISITREMARK"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			    <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                        <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("CASEID", ComplaintCaseModifyUrl) %>' Target="_blank">详细</asp:HyperLink>          
                    </div>
				    </itemtemplate>
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
    </form>
</body>
</html>
